﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Abs.App.Booking
{
    public partial class Booking_Failed : System.Web.UI.Page
    {
        private string adminMaster = "~/MasterPages/AdminMaster.Master";
        private string userMaster = "~/MasterPages/UserMaster.Master";
        protected void Page_PreInit(object sender, EventArgs e)
        {
            //Determine which master page to use based on the role of the account (normal user/ admin)
            if (Session["Role"] != null && ((int)Session["Role"] == (int)Abs.Core.Models.User.RoleEnum.Admin))
            {
                MasterPageFile = adminMaster;
            }
            else
            {
                MasterPageFile = userMaster;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}